arrange magic arrays)